GUIControl description ...
Properties
AsInvWindow
If this control is a inventory window, returns the InvWindow interface; otherwise null.
AsLabel
If this control is a label, returns the Label interface; otherwise null.
AsListBox
If this control is a list box, returns the ListBox interface; otherwise null.
AsSlider
If this control is a slider, returns the Slider interface; otherwise null.
AsTextBox
If this control is a text box, returns the TextBox interface; otherwise null.
Clickable
Gets/sets whether this control can be clicked on or whether clicks pass straight through it.
Enabled
Gets/sets whether this control is currently enabled.
Height
Gets/sets the height of the control.
ID
Gets the ID number of the control within its owning GUI.
OwningGUI
Gets the GUI that this control is placed onto.
Visible
Gets/sets whether this control is currently visible.
Width
Gets/sets the width of the control.
X
Gets/sets the X position of the control's top-left corner.
Y
Gets/sets the Y position of the control's top-left corner.
Methods
BringToFront
Brings this control to the front of the z-order, in front of all other controls.
GetAtScreenXY
static GUIControl GetAtScreenXY(int x, int y)
Returns the GUIControl at the specified location.
SendToBack
Sends this control to the back of the z-order, behind all other controls.
SetPosition
void SetPosition(int x, int y)
Moves the control to the specified position within the GUI.
SetSize
void SetSize(int width, int height)
Changes the control to the specified size.